package com.leo.app.view;

import com.leo.app.View;
import javafx.scene.control.Button;

import static com.leo.Framework.UIApp;

/**
 * @ClassName PlayView
 * @Description
 * @Author wangss
 * @date 2020.12.07 21:15
 * @Version 1.0
 */
public class PlayView extends View {

    public Button homeButton;

    @Override
    public void onLaunch() {
        homeButton = new Button("home");
        getChildren().add(homeButton);

        homeButton.setOnAction(event -> UIApp.gotoView(HomeView.class.getName()));
    }

    @Override
    public void onFinish() {

    }

    @Override
    public void onUpdate(double time) {
        System.out.println("playview = " + time);
    }
}
